-- spell_get_damage
-- created by zhuangsl
-- 每施放一个魔法，属性减少N

return {
    apply = function(prop, baseValue)
        -- 减少的值
        return prop[3];
    end,
    
    -- 施法触发
    trigger = function(who, prop, arg)
        local damage = prop[3];
        CombatM.receiveDamage(ME.user, ME.user, damage, 0);

        return prop[3];
    end,
    
    record = function(target, prop, path)
        return false;
    end 
};